// 引入store生成器
import {applyMiddleware, createStore} from 'redux';
// 引入reducer
import reducer from './reducers';
// 引入支持异步请求得中间件redux-thunk
import reduxThunk from 'redux-thunk'
// 创建store并抛出
export default createStore(reducer,applyMiddleware(reduxThunk));